package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.market.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 功能描述:
 * 总经办相关
 * @Auther: zhlu
 * @Date: 2019/5/11 16:28
 * @Description:
 */
@RestController
@RequestMapping("/manager")
public class ManagerController {

    @Autowired
    ManagerService ManagerService;

    /**
     * 功能描述: 
     * 获取总经办运营部相关统计
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/11 16:36
     */
    @RequestMapping(value = "/getManagerGmioCount",method = RequestMethod.POST)
    public JsonResult getManagerGmioCount(@RequestBody Map<String,Object> params){
        JsonResult result=new JsonResult();
        return result.put(ManagerService.getManagerGmioCount(params));
    }

    /**
     * 功能描述: 
     * 获取总经办列表详情
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/15 15:27
     */
    @RequestMapping(value = "/getManagerGmioCountList",method = RequestMethod.POST)
    public JsonResult getManagerGmioCountList(@RequestBody Map<String,Object>params,Pager pager){
        return ManagerService.getManagerGmioCountList(params,pager);
    }

}
